package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbFurnitureMapper;
import com.ruoyi.system.domain.TbFurniture;
import com.ruoyi.system.service.ITbFurnitureService;

/**
 * 家具管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
@Service
public class TbFurnitureServiceImpl implements ITbFurnitureService 
{
    @Autowired
    private TbFurnitureMapper tbFurnitureMapper;

    /**
     * 查询家具管理
     * 
     * @param furnitureId 家具管理主键
     * @return 家具管理
     */
    @Override
    public TbFurniture selectTbFurnitureByFurnitureId(Long furnitureId)
    {
        return tbFurnitureMapper.selectTbFurnitureByFurnitureId(furnitureId);
    }

    /**
     * 查询家具管理列表
     * 
     * @param tbFurniture 家具管理
     * @return 家具管理
     */
    @Override
    public List<TbFurniture> selectTbFurnitureList(TbFurniture tbFurniture)
    {
        return tbFurnitureMapper.selectTbFurnitureList(tbFurniture);
    }

    /**
     * 新增家具管理
     * 
     * @param tbFurniture 家具管理
     * @return 结果
     */
    @Override
    public int insertTbFurniture(TbFurniture tbFurniture)
    {
        return tbFurnitureMapper.insertTbFurniture(tbFurniture);
    }

    /**
     * 修改家具管理
     * 
     * @param tbFurniture 家具管理
     * @return 结果
     */
    @Override
    public int updateTbFurniture(TbFurniture tbFurniture)
    {
        return tbFurnitureMapper.updateTbFurniture(tbFurniture);
    }

    /**
     * 批量删除家具管理
     * 
     * @param furnitureIds 需要删除的家具管理主键
     * @return 结果
     */
    @Override
    public int deleteTbFurnitureByFurnitureIds(Long[] furnitureIds)
    {
        return tbFurnitureMapper.deleteTbFurnitureByFurnitureIds(furnitureIds);
    }

    /**
     * 删除家具管理信息
     * 
     * @param furnitureId 家具管理主键
     * @return 结果
     */
    @Override
    public int deleteTbFurnitureByFurnitureId(Long furnitureId)
    {
        return tbFurnitureMapper.deleteTbFurnitureByFurnitureId(furnitureId);
    }
}
